<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0, user-scalable=no">
		<link rel="stylesheet" href="css/frozenui.css">
		<link rel="stylesheet" href="css/style.css">
		<script src="js/public/vue.js" type="text/javascript" charset="utf-8"></script>
		<title>新闻详细页面</title>
	</head>

	<body>
		<header class="ui-header ui-header-positive ui-border-b go">
			<i class="icongoh" @click="histroygo"></i>
			<h1>校园</h1>
		</header>
		<div class="ui-container newsvue">
			<h1 class="textcent">{{newsdata.title}}</h1>
			<div class="ui-row-flex ui-whitespace textdiv">
				<div class="ui-col ui-col-3">发布人：{{newsdata.poster}}</div>
				<div class="ui-col ui-col-3">时间：{{timestampToTime(newsdata.add_time).split(' ')[0]}}</div>
				<div class="ui-col ui-col-1">{{newsdata.praise}}个赞</div>
			</div>

			<div class="ui-rowss articlestyle" v-if="newsdata.type==1" v-html="newsdata.content">

			</div>
			<div class="ui-rowss articlestyle" v-else>
				<div class="type2data" v-for="(item,index) in newsdata.catalogs.result">
					<h3 class="type2">目录{{index+1}}---{{item.name}}</h3>
					<div class="demo-block" v-html="item.descript">
					</div>
				</div>
				

			</div>
			<!--<div class="ui-btn-wrap">
            <button class="ui-btn-lg">
                点赞
            </button>
        </div>-->
		</div>
		<script src="js/public/vue-resource.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/public/pub.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/news.js" type="text/javascript" charset="utf-8"></script>
	</body>

</html>